package com.tjetc.ioc.test;

import com.tjetc.aop.Vehicle;
import com.tjetc.ioc.config.AppConfig;
import com.tjetc.tx.MonsterDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import javax.sql.DataSource;

/**
 * @author gaoyongxiang
 * @version v1.0
 * @date 2025/9/2
 */
public class _5TestSpring {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
        MonsterDao monsterDao = context.getBean(MonsterDao.class);
        monsterDao.addMonster();
    }

}